<!DOCTYPE html>
<html lang="zh-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <!-- 引用 CDN -->
    <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vditor/dist/index.css" />
    <script src="https://cdn.jsdelivr.net/npm/vditor/dist/index.min.js" defer></script> -->

    <!-- 引用本地 js 和 css -->
    <link rel="stylesheet" href="./dist/index.css"/>
    <script src="./dist/index.min.js" defer></script>
    
    <title>Vditor Demo</title>
</head>
<body>
    <div id="vditor" style="height: -webkit-fill-available;"></div>
</body>
<script>
    window.onload = function() {
        var vditor = new Vditor('vditor');
        document.getElementById('vditor').append(vditor);
    }
</script>
</html>